public class Main {
    public static void main(String[] args) {
        MyArrayList mal=new MyArrayList();
        boolean empty=mal.isEmpty();
        System.out.println(empty);
        int num=mal.getNum();
        System.out.println(num);
        mal.insert(0,1);
        empty=mal.isEmpty();
        System.out.println(empty);
        mal.insert(1,2);
        mal.insert(2,3);
        mal.insert(3,4);
        mal.insert(4,5);
        mal.insert(5,6);
        mal.display();
        mal.insert(0,999);
        mal.display();
        mal.insert(7,888);
        mal.display();
        num=mal.getNum();
        System.out.println(num);
        boolean flag=mal.contain(777);
        System.out.println(flag);
        int pos=mal.search(888);
        System.out.println(pos);
        int data=mal.getValue(-1);
        System.out.println(data);
        mal.set(8, 1000);
        mal.display();
        mal.delete(3);
        mal.display();
        num=mal.getNum();
        System.out.println(num);
        mal.delete(1000);
        mal.display();
        num=mal.getNum();
        System.out.println(num);
        mal.clear();
        num=mal.getNum();
        System.out.println(num);
        empty=mal.isEmpty();
        System.out.println(empty);
        mal.delete(1000);
        mal.display();
        mal.set(8, 1000);
        mal.display();
        pos=mal.search(888);
        System.out.println(pos);
        mal.insert(5,6);
    }
}
